/* ═══════════════════════════════════════════
   RAC — Catálogo de Productos
   catalogo.css
   ═══════════════════════════════════════════ */

/* ─── Hero de catálogo ─── */
.cat-hero {
  position: relative;
  height: 52vh;
  min-height: 320px;
  max-height: 520px;
  overflow: hidden;
  margin-top: 72px;
  background: var(--black);
}

.cat-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(230,191,35,.03) 0px,
      rgba(230,191,35,.03) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(230,191,35,.03) 0px,
      rgba(230,191,35,.03) 1px,
      transparent 1px,
      transparent 80px
    ),
    linear-gradient(135deg, var(--black) 0%, var(--dark-3) 60%, rgba(230,191,35,.08) 100%);
}

.cat-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(24px, 6vw, 96px) 52px;
}

.cat-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.0;
  color: var(--white);
  text-transform: uppercase;
}

.cat-hero-title em {
  font-style: italic;
  color: var(--yellow);
}

.cat-hero-sub {
  margin-top: 14px;
  font-size: .95rem;
  color: var(--white-dim);
  max-width: 620px;
  line-height: 1.7;
}

.cat-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.cat-hero-tag {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
  border: 1px solid var(--line);
  padding: 6px 14px;
  cursor: pointer;
  transition: color .25s, border-color .25s;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
}

.cat-hero-tag:hover,
.cat-hero-tag.active {
  color: var(--yellow);
  border-color: rgba(230,191,35,.5);
}

/* ─── Breadcrumb ─── */
.breadcrumb {
  padding: 18px clamp(24px, 6vw, 96px);
  background: var(--dark-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
}

.breadcrumb a {
  color: var(--stone);
  text-decoration: none;
  transition: color .25s;
}

.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb .sep { opacity: .4; }
.breadcrumb .current { color: var(--yellow); }

/* ─── Banner Hercules (estrella) ─── */
#hercules-banner {
  background: var(--yellow);
  padding: clamp(48px, 6vw, 80px) clamp(24px, 6vw, 96px);
  position: relative;
  overflow: hidden;
}

.hb-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.hb-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(13,13,11,.6);
  background: rgba(13,13,11,.1);
  padding: 7px 16px;
  margin-bottom: 20px;
}

.hb-badge svg { flex-shrink: 0; }

.hb-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.0;
  color: var(--black);
  letter-spacing: .02em;
}

.hb-title span {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  letter-spacing: .04em;
  opacity: .7;
  margin-bottom: 6px;
}

.hb-desc {
  margin-top: 16px;
  font-size: .95rem;
  line-height: 1.75;
  color: rgba(13,13,11,.7);
  max-width: 620px;
}

.hb-brands-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hb-brand-chip {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--black);
  background: rgba(13,13,11,.1);
  border: 1px solid rgba(13,13,11,.2);
  padding: 7px 16px;
}

.hb-logo-block {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
 
.hb-logo-img {
  width: clamp(260px, 28vw, 400px);
  height: auto;
  object-fit: contain;
  /* El logo tiene fondo blanco — se integra naturalmente sobre el banner amarillo */
}
.hb-logo-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--black);
  text-align: center;
  line-height: 1;
  border: 3px solid var(--black);
  padding: 20px 32px;
}

.hb-logo-sub {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(13,13,11,.6);
  text-align: center;
}

.hb-star {
  position: absolute;
  top: 24px; right: 24px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(13,13,11,.5);
  writing-mode: vertical-rl;
}

/* ─── Sección de productos ─── */
#productos {
  background: var(--dark);
  padding: clamp(64px, 8vw, 100px) clamp(24px, 6vw, 96px);
}

.cat-section-header {
  margin-bottom: 64px;
}

/* ─── Filtros de categoría ─── */
.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}

.cat-filter-btn {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--stone);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 13px 22px;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color .25s, border-color .25s;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.cat-filter-btn:hover { color: var(--white); }
.cat-filter-btn.active {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* ─── Grupos de categoría ─── */
.cat-group {
  margin-bottom: 80px;
}

.cat-group-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  flex-wrap: wrap;
}

.cat-group-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 14px;
}

.cat-group-title::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--yellow);
  flex-shrink: 0;
}

.cat-group-count {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}

/* ─── Grid de productos ─── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 3px;
}

/* ─── Tarjeta de producto ─── */
.cat-card {
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
  transition: background .3s;
  cursor: default;
}

.cat-card:hover { background: var(--dark-3); }

.cat-card-img {
  aspect-ratio: 1 / 1;
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.85) brightness(.95);
  transition: transform .5s ease, filter .4s ease;
}

.cat-card:hover .cat-card-img img {
  transform: scale(1.06);
  filter: saturate(1) brightness(1.05);
}

/* Placeholder icon cuando no hay imagen */
.cat-card-icon {
  font-size: 3.5rem;
  opacity: .18;
  line-height: 1;
}

/* Línea amarilla inferior al hover */
.cat-card-accent {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--yellow);
  transition: width .4s ease;
}

.cat-card:hover .cat-card-accent { width: 100%; }

/* Tag de marca en esquina */
.cat-card-brand {
  position: absolute;
  top: 10px; right: 10px;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(13,13,11,.7);
  padding: 4px 8px;
  backdrop-filter: blur(4px);
}

.cat-card-body {
  padding: 20px 22px 24px;
}

.cat-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--white);
  line-height: 1.15;
}

.cat-card-specs {
  margin-top: 8px;
  font-size: .76rem;
  color: var(--stone);
  line-height: 1.6;
}

.cat-card-spec-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cat-card-spec-item::before {
  content: '—';
  color: var(--yellow);
  opacity: .5;
  font-size: .6rem;
  flex-shrink: 0;
}

/* ─── Card especial: Hercules highlight ─── */
.cat-card.hercules-card {
  border-top: 2px solid var(--yellow);
}

.cat-card.hercules-card .cat-card-img {
  background: linear-gradient(135deg, var(--dark-3), rgba(230,191,35,.05));
}

/* ─── Card de "Preguntá por este producto" ─── */
.cat-card-cta {
  background: transparent;
  border: 1px dashed rgba(230,191,35,.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  aspect-ratio: auto;
  min-height: 280px;
  transition: border-color .3s, background .3s;
  cursor: pointer;
  text-decoration: none;
}

.cat-card-cta:hover {
  border-color: var(--yellow);
  background: rgba(230,191,35,.04);
}

.cat-card-cta-icon {
  width: 48px; height: 48px;
  border: 1px solid rgba(230,191,35,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--yellow);
  transition: background .3s;
}

.cat-card-cta:hover .cat-card-cta-icon {
  background: rgba(230,191,35,.1);
}

.cat-card-cta-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 8px;
}

.cat-card-cta-sub {
  font-size: .78rem;
  color: var(--stone);
  line-height: 1.6;
}

/* ─── Sección de marcas ─── */
#marcas-catalogo {
  background: var(--dark-2);
  padding: clamp(56px, 7vw, 90px) clamp(24px, 6vw, 96px);
  border-top: 1px solid var(--line);
}

.marcas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 3px;
  margin-top: 40px;
}

.marca-item {
  background: var(--dark-3);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  transition: background .3s;
  cursor: default;
}

.marca-item:hover { background: rgba(230,191,35,.06); }

.marca-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color .3s;
}

.marca-item:hover .marca-name { color: var(--yellow); }

.marca-type {
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
  opacity: .7;
}

.marca-item.featured {
  background: rgba(230,191,35,.08);
  border-top: 2px solid var(--yellow);
}

.marca-item.featured .marca-name { color: var(--yellow); }

/* ─── CTA final ─── */
.cat-cta-bar {
  background: var(--yellow);
  padding: clamp(48px, 6vw, 80px) clamp(24px, 6vw, 96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cat-cta-text h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--black);
  line-height: 1.05;
}

.cat-cta-text p {
  font-size: .9rem;
  color: rgba(13,13,11,.65);
  margin-top: 8px;
}

.cat-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--yellow);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 40px;
  transition: background .25s;
  white-space: nowrap;
}

.cat-cta-btn:hover { background: var(--dark-2); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hb-grid { grid-template-columns: 1fr; }
  .hb-logo-block { justify-content: flex-start; }
  .hb-logo-img { width: clamp(200px, 60vw, 320px); }
}

@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-filters { gap: 0; }
  .cat-filter-btn { padding: 11px 14px; font-size: .6rem; }
  .cat-cta-bar { flex-direction: column; align-items: flex-start; }
  .marcas-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-group-header { flex-direction: column; align-items: flex-start; }
  .hb-star { display: none; }
}

@media (max-width: 400px) {
  .cat-grid { grid-template-columns: 1fr; }
}
